<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <meta name="viewport" content="width=device-width, user-scalable=no"/>
        <title>Sorteio - Login</title>
        <link rel="stylesheet" href="_css/estilo.css" />
    </h:head>

    <h:body>

        <div id="div-login">
            <span id="span-login-professor">
                <h:form>
                    <p:panel header="Seção Professor">
                        <h:outputText value="Login: " />
                        <h:inputText value="#{loginMB.username}" size="15"/>
                        <br/>
                        <h:outputText value="Senha: "/>
                        <h:inputSecret value="#{loginMB.passwd}" size="15"/>
                        <br/>
                        <h:commandButton value="Entrar" action="#{loginMB.loginProfessor()}"/>
                        <br/>
                        <br/>
                        <h:commandLink value="Cadastrar Novo"/>
                    </p:panel>
                </h:form>
            </span>

            <br/>

            <span id="span-login-equipe">
                <h:form>
                    <p:panel header="Seção Equipe">
                        <h:outputText value="Nome: " />
                        <h:inputText value="#{loginMB.nome}" size="15"/>
                        <br/>
                        <h:commandButton value="Entrar" action="#{loginMB.loginEquipe()}"/>
                        <br/>
                        <br/>
                        <h:commandLink value="Cadastrar Novo"/>
                    </p:panel>
                </h:form>
            </span>
        </div>

    </h:body>

</html>

